home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 1 / Atari Mega Archive - Volume 1.iso / lists / mint / l_1199 / 1109 < prev    next >
Encoding:
Internet Message Format  |  1994-08-27  |  1.4 KB

  1. From: bousch@topo.matups.fr (Thierry Bousch)
  2. Subject: Re: user-written interrupt handlers
  3. Date: Mon, 28 Feb 1994 13:47:42 +0100 (MET)
  4. In-Reply-To: <9402142142.AA07231@hanauma.jpl.nasa.gov> from "Howard Chu" at Feb 14, 94 01:42:01 pm
  5.  
  6. Hello Howard,
  7.  
  8. > >I would think that any user-supplied interrupt handlers should be provided
  9. > >as device drivers; they can then call into the kernel via the table that
  10. > >MiNT provides, and don't have to worry about going through trap #1.
  11. > Well, I decided I was taking an impossible tack, so I tried again from a
  12. > different angle... Now I have a new DOS call Psiginter(vec,sig) which will
  13. > install an interrupt handler for the user, that will send the calling process
  14. > the signal sig when the given interrupt occurs. I basically copied the Do_sig
  15.  
  16. Signal handlers aren't good replacements for interrupts; they take too
  17. much time to be serviced -- maybe a tenth of a second, versus a few
  18. microseconds for an interrupt handler. It would be unusable, for
  19. instance, for the serial interrupts, while it would be quite appropriate
  20. for "Monochrome Detect", say.
  21.  
  22. On the other hand, it should be _possible_ for an interrupt handler to
  23. raise a signal; for instance, in the case of a SLIP handler, we'd like
  24. to receive a signal (or whatever) when a datagram has been completely
  25. received, not at every received character...
  26.  
  27. But I don't know if it is safe to call Pkill (via the kernel) in an
  28. interrupt handler.
  29.  
  30. Thierry.
  31.